<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="t" tagdir="/WEB-INF/tags/table" %>
<div id="view_overview" class="view_overview_div">
	<t:head code="view.overview.title" create="true" />
	<div class="view_list_div">
		<t:line head="true">
			<t:cell type="id"><spring:message code="form.id"/></t:cell>
			<t:cell type="urlpattern"><spring:message code="form.urlpattern"/></t:cell>
			<t:cell type="roles"><spring:message code="form.roles"/></t:cell>
		</t:line>
		<c:forEach items="${views}" var="view">
			<t:line>
				<t:cell type="id"><c:out value="${view.id}" /></t:cell>
				<t:cell type="urlpattern"><c:out value="${view.urlpattern}" /></t:cell>
				<t:cell type="roles">
					<c:forEach items="${view.roles}" var="role">
						<c:out value="${role.name}" />
					</c:forEach>
				</t:cell>
				<t:buttons id="${view.id}" delete="true" edit="true"/>
			</t:line>
		</c:forEach>
	</div>
</div>